<? //SHIPPERS_add.php;
$msg="";
include("SHIPPERS_session.php");
if(isset($_POST["submit"]))
{
	$data_class = new SHIPPERS();$data_class->setShipperID($_POST["ShipperID"]);
	$data_class->setCompanyName($_POST["CompanyName"]);
	$data_class->setPhone($_POST["Phone"]);
	$insert_class = new SessionSHIPPERS();
	$insert_class->insert($data_class);
	$msg = "Success Insert Data";
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert Data To Table SHIPPERS</title>
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery_validate.js"></script>
  <script>
  $(document).ready(function(){
    $("#form").validate();
  });
  </script>
</head>

<body>
<h2><?=$msg;?></h2><form name="form1" id="form" method="post" action="<?=$_SERVER["PHP_SELF"];?>">
  <table width="657" border="1">
    <tr>
      <td colspan="3">INSERT DATA</td>
    </tr><tr>
      <td width="97">ShipperID</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="ShipperID" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">CompanyName</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="CompanyName" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr><tr>
      <td width="97">Phone</td>
      <td width="3">:</td>
      <td width="535"><input type="text" name="Phone" value="" class="required " minlength="0" maxlength="25" /></td>
    </tr> <tr>
      <td></td>
      <td></td>
      <td><input type="submit" name="submit" value="Add" /></td>
    </tr>
   
  </table>
</form>
</body>
</html>